package at.main.util;

import java.io.IOException;

import at.main.android.Image;

public class AllImage {
	public static Image img_Title;	

	public static Image[] img_arrPacMan;

	public static Image[] img_arrMonster0;
	public static Image img_cmd;
	public static Image img_icon;
	public static Image img_ready;
	public static Image img_msg;
	public static Image img_jamo;
	public static Image img_splash;
	public static Image img_win;
	public static Image img_lose;
	public static Image img_bgwin;
	public static Image img_menu;
	public static Image img_exit;
	public static Image img_again;
	public static void createImage() {
		img_arrPacMan = new Image[4];
		img_arrMonster0 = new Image[4];
		try {
			img_Title = Image.createImage("/tile.png");
			img_msg = Image.createImage("/msg.png");			
			img_win = Image.createImage("/win.png");
			img_lose = Image.createImage("/lose.png");
			img_menu = Image.createImage("/menu.png");
			img_exit = Image.createImage("/exit.png");
			img_again = Image.createImage("/again.png");
			for (int i = 0; i < 4; i++) {			
				img_arrPacMan[i] = Image.createImage("/p" + i + ".png");				
			}	
			for(int i =0; i <4; i++)//chay mang monster
			{
				img_arrMonster0[i] = Image.createImage("/m0" + i + ".png");
			}
			
			if(ConfigPanel.iTypeScreen == 0){
				img_cmd = Image.createImage("/cmd0.png");
				img_icon = Image.createImage("/icon0.png");				
				img_ready = Image.createImage("/ss0.png");
				img_splash = Image.createImage("/splash0.jpg");
				img_bgwin = Image.createImage("/bgwin0.jpg");
			}else{
				img_cmd = Image.createImage("/cmd1.png");
				img_icon = Image.createImage("/icon1.png");				
				img_ready = Image.createImage("/ss1.png");		
				img_splash = Image.createImage("/splash1.jpg");
				img_bgwin = Image.createImage("/bgwin1.jpg");
			}
			img_jamo = Image.createImage("/jamo.png");
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
